package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class NullOrdering {

    private int beginIndex;
    private int endIndex;
    private boolean nullsFirst;
    private boolean nullsLast;

    public NullOrdering(int beginIndex,
                        int endIndex,
                        boolean nullsFirst,
                        boolean nullsLast) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.nullsFirst = nullsFirst;
        this.nullsLast = nullsLast;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isNullsFirst() {
        return nullsFirst;
    }

    public boolean isNullsLast() {
        return nullsLast;
    }

}
